package com.hsgene.user.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @description:
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.user.exception
 * @author: maodi
 * @createDate: 2018/11/8 16:12
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
public enum GeneticTestingUserAddressErrorCode implements ErrorCode {

    SELECT_GROUND_SERVANT_IS_ERROR(10900, "SELECT_GROUND_SERVANT_IS_ERROR", "获取地服下拉框数据源出错"),
    GROUND_SERVANT_PHONE_IS_NOT_NULL(10901, "GROUND_SERVANT_PHONE_IS_NOT_NULL", "地服人员电话不能为空"),
    GROUND_SERVANT_PHONE_IS_ERROR(10902, "GROUND_SERVANT_PHONE_IS_ERROR", "地服人员电话格式有误"),
    GROUND_SERVANT_TERRITORY_NAME_IS_NOT_NULL(10903, "GROUND_SERVANT_TERRITORY_NAME_IS_NOT_NULL", "地服大区名称不能为空"),
    GROUND_SERVANT_TERRITORY_NAME_IS_ERROR(10904, "GROUND_SERVANT_TERRITORY_NAME_IS_ERROR", "地服大区名称有误"),
    GROUND_SERVANT_PROVINCE_NAME_IS_NOT_NULL(10905, "GROUND_SERVANT_PROVINCE_NAME_IS_NOT_NULL", "地服省份名称不能为空"),
    GROUND_SERVANT_PROVINCE_NAME_IS_ERROR(10906, "GROUND_SERVANT_PROVINCE_NAME_IS_ERROR", "地服省份名称有误"),
    PROVINCE_NAME_IS_NOT_NULL(10907, "PROVINCE_NAME_IS_NOT_NULL", "收货地址省份名称不能为空"),
    PROVINCE_NAME_IS_ERROR(10908, "PROVINCE_NAME_IS_ERROR", "收货地址省份名称有误"),
    CITY_NAME_IS_NOT_NULL(10909, "CITY_NAME_IS_NOT_NULL", "收货地址市级名称不能为空"),
    CITY_NAME_IS_ERROR(10910, "CITY_NAME_IS_ERROR", "收货地址市级名称有误"),
    DISTRICT_NAME_IS_NOT_NULL(10911, "DISTRICT_NAME_IS_NOT_NULL", "收货地址区县级名称不能为空"),
    DISTRICT_NAME_IS_ERROR(10912, "DISTRICT_NAME_IS_ERROR", "收货地址区县级名称有误"),
    ADDRESS_IS_NOT_NULL(10913, "ADDRESS_IS_NOT_NULL", "收货地址详细地址不能为空"),
    AREA_ID_IS_NOT_NULL(10914, "AREA_ID_IS_NOT_NULL", "收货地址地区id不能为空"),
    AREA_ID_IS_ERROR(10915, "AREA_ID_IS_ERROR", "收货地址地区id有误"),
    CONSIGNEE_IS_NOT_NULL(10916, "CONSIGNEE_IS_NOT_NULL", "收件人不能为空"),
    CONSIGNEE_PHONE_IS_NOT_NULL(10917, "CONSIGNEE_PHONE_IS_NOT_NULL", "收件人电话不能为空"),
    CONSIGNEE_PHONE_IS_ERROR(10918, "CONSIGNEE_PHONE_IS_ERROR", "收件人电话格式有误"),
    ZIP_CODE_ID_IS_NOT_NULL(10919, "ZIP_CODE_ID_IS_NOT_NULL", "邮编不能为空"),
    ZIP_CODE_ID_IS_ERROR(10920, "ZIP_CODE_ID_IS_ERROR", "邮编格式有误"),
    IS_DEFAULT_ADDRESS_ID_IS_NOT_NULL(10921, "IS_DEFAULT_ADDRESS_ID_IS_NOT_NULL", "是否默认不能为空"),
    IS_DEFAULT_ADDRESS_ID_IS_ERROR(10922, "IS_DEFAULT_ADDRESS_ID_IS_ERROR", "是否默认格式错误"),
    REMARKS_IS_EXCEED_200(10923, "REMARKS_IS_EXCEED_200", "备注长度超过200个字符"),
    QUERY_GROUND_SERVANT_ADDRESS_DETAILS_IS_ERROR(10924, "QUERY_GROUND_SERVANT_ADDRESS_DETAILS_IS_ERROR",
            "获取地服收货地址详情信息出错"),
    QUERY_GROUND_SERVANT_ADDRESS_IS_ERROR(10925, "QUERY_GROUND_SERVANT_ADDRESS_IS_ERROR", "查询地服收货地址列表出错"),
    INSERT_GROUND_SERVANT_ADDRESS_IS_ERROR(10926, "INSERT_GROUND_SERVANT_ADDRESS_IS_ERROR", "新增地服收货地址出错"),
    UPDATE_GROUND_SERVANT_ADDRESS_IS_ERROR(10927, "UPDATE_GROUND_SERVANT_ADDRESS_IS_ERROR", "修改地服收货地址出错"),
    DELETE_GROUND_SERVANT_ADDRESS_IS_ERROR(10928, "DELETE_GROUND_SERVANT_ADDRESS_IS_ERROR", "删除地服收货地址出错"),
    UPDATE_GROUND_SERVANT_ADDRESS_TO_DEFAULT_IS_ERROR(10929, "UPDATE_GROUND_SERVANT_ADDRESS_TO_DEFAULT_IS_ERROR",
            "设置地服默认收货地址出错"),
    UPDATE_OTHER_GROUND_SERVANT_ADDRESS_TO_NOT_DEFAULT_IS_ERROR(10930,
            "UPDATE_OTHER_GROUND_SERVANT_ADDRESS_TO_NOT_DEFAULT_IS_ERROR", "设置其他地服收货地址为非默认出错"),
    DETAILS_GROUND_SERVANT_USER_ID_IS_NOT_NULL(10931,
            "DETAILS_GROUND_SERVANT_USER_ID_IS_NOT_NULL", "获取地服详情用户id不能为空"),
    CURRENT_GROUND_SERVANT_ADDRESS_UP_TO_5(10932, "CURRENT_GROUND_SERVANT_ADDRESS_UP_TO_5", "地服收货地址最多5个，当前已经有5个"),
    AFTER_INSERT_GROUND_SERVANT_ADDRESS_UP_TO_5(10933, "AFTER_INSERT_GROUND_SERVANT_ADDRESS_UP_TO_5",
            "地服收货地址最多5个，新增过后会超过5个"),
    USER_IDS_IS_NOT_NULL(10934, "USER_IDS_IS_NOT_NULL", "用户id数组不能为空"),
    SOME_USER_ID_IS_NOT_EXIST(10935, "SOME_USER_ID_IS_NOT_EXIST", "有些用户id不存在"),
    ADDRESS_DETAILS_IS_NOT_NULL(10936, "ADDRESS_DETAILS_IS_NOT_NULL", "地址详情数组不能为空"),
    ADDRESS_DETAILS_ID_IS_NOT_NULL(10937, "ADDRESS_DETAILS_ID_IS_NOT_NULL", "地服收货地址id不能为空"),
    ADDRESS_DETAILS_ID_IS_NOT_EXIST(10939, "ADDRESS_DETAILS_ID_IS_NOT_EXIST", "地服收货地址id不存在"),
    ADDRESS_DETAILS_ID_IS_MULTI(10940, "ADDRESS_DETAILS_ID_IS_MULTI", "地服收货地址id存在多个"),
    GROUND_SERVANT_NAME_IS_NOT_NULL(10941, "GROUND_SERVANT_NAME_IS_NOT_NULL", "地服姓名不能为空"),
    GROUND_SERVANT_NAME_IS_NOT_EXIST(10942, "GROUND_SERVANT_NAME_IS_NOT_EXIST", "地服姓名不存在"),
    USER_ID_NOT_EQUAL_GROUND_SERVANT_NAME(10943, "USER_ID_NOT_EQUAL_GROUND_SERVANT_NAME", "用户id与地服姓名不匹配"),
    GROUND_SERVANT_CAN_NOT_HAVE_MULTI_DEFAULT(10944, "GROUND_SERVANT_CAN_NOT_HAVE_MULTI_DEFAULT", "同一个地服不能有多个默认地址"),
    GROUND_SERVANT_ADDRESS_IS_EXIST_TO_UPDATE(10945, "GROUND_SERVANT_ADDRESS_IS_EXIST_TO_UPDATE", "该地服收货地址已经存在，请进行修改操作");

    /**
     * 错误码
     */
    private final int code;

    /**
     * 错误信息
     */
    private final String message;

    /**
     * 错误描述
     */
    private final String description;

    GeneticTestingUserAddressErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }

}
